package com.superzqb.asus.superzqbUtil;




import android.app.Dialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.superzqb.asus.superzqb.R;


public class LoadDialog {
	  

    public static Dialog loadingDialog;
    public static Dialog getInstance(Context context,String message){
        loadingDialog = new Dialog(context, R.style.loadingDialog);
        View defaultView = LayoutInflater.from(context).inflate(
                R.layout.load_dialog, null);
        TextView messageText = (TextView) defaultView
                .findViewById(R.id.loadText);
        messageText.setText(message);
        loadingDialog.setContentView(defaultView);

        loadingDialog.setCancelable(false);
        loadingDialog.setCanceledOnTouchOutside(false);
        return loadingDialog;
    }

}
